package com.sise.wangzhan.client;

import com.sise.wangzhan.entity.Book;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * @Classname BookService
 * @Description TODO
 * @Date 2020/5/14 11:25
 * @Created by wangzhan
 */
@FeignClient("zuul-book-service")
public interface BookService {

    @RequestMapping(method = RequestMethod.GET, value = "/book/{bookId}")
    Book getBook(@PathVariable("bookId") Integer bookId);

}
